package com.chen.dao;

import com.chen.User;
import com.chen.entity.Spinguser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpinguserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Spinguser record);

    int allPages();

    int insertSelective(Spinguser record);

    int selectByPrimaryKey(Spinguser spinguser);

    Spinguser selectByName(String name);

    List<Spinguser> selectAll();

    int updateByPrimaryKeySelective(Spinguser record);

    Spinguser updateByName(String name);

    int updateByPrimaryKey(Spinguser record);

    List<User> selectSpinguserByPage(@Param(value = "pageOffset") Integer pageOffset, @Param(value = "pageSize") Integer pageSize);
}